projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b9f343
)
Globalsat: flush receive on startup to make BT-335 more reliable.
author
robertl
<robertl>
Sat, 22 Nov 2008 17:43:53 +0000
(17:43 +0000)
committer
robertl
<robertl>
Sat, 22 Nov 2008 17:43:53 +0000
(17:43 +0000)
dg-100.c
patch
|
blob
|
history
diff --git
a/dg-100.c
b/dg-100.c
index 9657076b293b0375e8f406eb6b74a3408400f189..78e50be588d861a3d6c9e90a5d1228914edf8e57 100644
(file)
--- a/
dg-100.c
+++ b/
dg-100.c
@@
-640,6
+640,9
@@
dg100_rd_init(const char *fname)
if (gbser_set_speed(serial_handle, 115200) != gbser_OK) {
fatal(MYNAME ": Can't configure port '%s'\n", fname);
}
+ // Toss anything that came in before our speed was set, particularly
+ // for the bluetooth BT-335 product.
+ gbser_flush(serial_handle);
}
static void